package cn.wolfcode.business.domain;


import cn.wolfcode.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class BusAppointment extends BaseEntity {
    public static final Integer STATUS_BOOKING = 0;//预约中
    public static final Integer STATUS_ARRIVED = 1;//已到店
    public static final Integer STATUS_USER_CANCELLED = 2;//用户取消
    public static final Integer STATUS_TIMEOUT_CANCELLED = 3;//超时取消
    public static final Integer STATUS_SETTLED = 4;//已结算
    public static final Integer STATUS_PAID = 5;//已支付
    //主键
    private Long id;
    //客户名称
    private String customerName;
    //客户联系方式
    private String customerPhone;
    //预约时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date appointmentTime;
    //实际到店时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date actualArrivalTime;
    //车牌号码
    private String licensePlate;
    //汽车类型
    private String carSeries;
    //服务类型【维修0/保养1】
    private Integer serviceType;
    //创建时间
    private Date createTime;
    //备注信息
    private String info;
    //状态【预约中0/已到店1/用户取消2/超时取消3/已结算4/已支付5】
    private Integer status;
}
